package com.magicsoft.share.utils;

import android.app.Activity;

import com.magicsoft.share.R;
import com.magicsoft.share.customview.alerter.Alerter;

/**
 * @author lyf
 * @date 2017/10/26/026
 */

public class AlerterUtils {


    public static void warning(Activity activity, String title) {
        warning(activity, title, null);
    }

    public static void warning(Activity activity, String title, String content) {

        Alerter.create(activity)
                .setTitle(title)
                .setText(content)
                .setBackgroundColorRes(R.color.transparent_black)
                .setIcon(R.drawable.warning)
                .show();
    }

}
